<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
</head>

<body>

<div id="append">
</div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="note fixwidthdec">
<p class="i">首页的每个区块显示数可以在这里设置，其它列表页包括分类列表，搜索结果等。</p>
</div>
<div class="mainbox nomargin">
<form action="index.php?admin_setting/list<?=$setting['seo_suffix']?>" method="post">
<table class="opt">
<tr>
<th>参数名称</th>
<th>显示数</th>
</tr>
<tr>
<td>首页精彩推荐：</td>
<td><input value="<?=$setting['list_indexcommend']?>" name="list_indexcommend"></td>
</tr>
<tr>
<td>首页待解决问题：</td>
<td><input value="<?=$setting['list_indexnosolve']?>" name="list_indexnosolve"></td>
</tr>
<tr>
<td>首页赏金求答案：</td>
<td><input value="<?=$setting['list_indexreward']?>" name="list_indexreward"></td>
</tr>
<tr>
<td>首页站内公告：</td>
<td><input value="<?=$setting['list_indexnote']?>" name="list_indexnote"></td>
</tr>
<tr>
<td>首页上周经验排行榜：</td>
<td><input  value="<?=$setting['list_indexweekscore']?>" name="list_indexweekscore"></td>
</tr>
<tr>
<td>首页总经验排行榜：</td>
<td><input value="<?=$setting['list_indexallscore']?>" name="list_indexallscore"></td>
</tr>
<tr>
<td>热点关键词：</td>
<td><textarea style="height: 200px; width: 200px;"  name="list_hot_words" class="area"><?=$setting['list_hot_words']?></textarea>设置说明:关键词<font color="green">[，对应问题qid]</font>注意一行一个关键词，若qid为空则调用搜索模块。如：tipask，1。</td>
</tr>
<tr>
<td>最佳回答采纳率：</td>
<td><input value="<?=$setting['list_bestadopt']?>" name="list_bestadopt"></td>
</tr>
<tr>
<td>首页缓存时间：</td>
<td><input value="<?=$setting['index_life']?>" name="index_life"></td>单位是分钟
</tr>
</table>
<div class="opt"><input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
</form>
</div>
</div>

</body>

</html>
